package softOffer;

public class Question2 {	
	public String replaceSpace(StringBuffer str) {
		 String string = str.toString();
		 String content = string.replace(" " , "%20");
		 return content;	
    }
	public static void main(String[] args) {
		Question2 question = new Question2();
		StringBuffer buffer = new StringBuffer("We Are Happy");
		String str = question.replaceSpace(buffer);
		System.out.println(str);
	}

}
